#!/usr/bin/python
# -*- coding: utf-8 -*-
# Created on 2017-02-20 上午9:26
# @auther: chenyongbing
# @file: forms.py

import os, logging

log = logging.getLogger(__name__)


from django import forms

from .models import WechatVerify

class WechatVerifyForm(forms.ModelForm):
    # def __init__(self, *args, **kwargs):
    #     super(WechatVerifyForm, self).__init__(*args, **kwargs)
    #     self.fields['env'].required = True
    #     self.fields['file'].required = True
    #     self.fields['desc'].required = False
    class Meta:
        model = WechatVerify
        fields = ['host', 'file', 'desc']